﻿/*
 *
 * (c) Copyright Ascensio System Limited 2010-2023
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
*/


body {
    overflow: hidden;
}

.studio-container {
    height: 100vh;
    height: ~"calc(var(--vh, 1vh) * 100)";
}

.studio-container:not(.disabled-side-panel) {
    grid-template-columns: 288px 1px 1fr;
}

nav {
    height: ~"calc(100vh - 24px)";
    height: ~"calc(var(--vh, 1vh) * 100 - 24px)";
    display: grid;
}

main {
    height: ~"calc(100vh - 24px)";
    height: ~"calc(var(--vh, 1vh) * 100 - 24px)";
    display: grid;
}

aside {
    height: ~"calc(100vh - 24px)";
    height: ~"calc(var(--vh, 1vh) * 100 - 24px)";
}

.nav-content {
    overflow-y: scroll;
    margin-right: -16px;
}

.nav-content.webkit-scrollbar::-webkit-scrollbar-track { background: transparent; }

.nav-content.webkit-scrollbar::-webkit-scrollbar-thumb { background: transparent; }

.nav-content.webkit-scrollbar:hover::-webkit-scrollbar-thumb { background: #BFBFBF; background-clip: content-box; }

.nav-content:hover {
    overflow-y: scroll;
    margin-right: -16px;
    scrollbar-width: thin;
    scrollbar-color: #BFBFBF transparent;
}

.nav-content #treeViewContainer {
    overflow: hidden;
}

.page-content {
    padding-right: 8px;
    margin-right: -24px;
    overflow-y: scroll;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #BFBFBF transparent;
}

.page-content.webkit-scrollbar::-webkit-scrollbar-track { background: transparent; }

.layout-bottom-spacer {
    padding: 12px 0;
}

@media (max-width: 1200px) {
    .paging-content {
        padding: 0;
    }
}